var ip = "http://localhost"; //后台ip
var port = ":9014"; //端口

function getdata(url,param,httpway,afterCall){
	$.ajax({
		type:httpway,
		url: ip + port + url,
		dataType: 'json',
		data: param,
		async: true,
		success: function(res) {
			afterCall(res)
		},
		error: function(msg) {
			console.log(msg)
		}
	});
}